home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / scope / 001-025 / scopedisk9 / sound / sound.doc < prev    next >
Text File  |  1995-03-18  |  5KB  |  106 lines

  1. *****************************  Sound.doc  ********************************
  2.  
  3.     Sound is copyright (c) 1988 by Richard Lee Stockton, 21305 60th Ave W.,
  4. Mountlake Terrace, Washington 98043, 206/776-1253(voice), but may be freely
  5. distributed as long as no profit is made from its distribution or sale
  6. without my written permission. I call this concept 'FreeWare', you can
  7. call it whatcha want.
  8.  
  9.     I also include the source code, (Manx 3.4/3.6), in the hope that it
  10. will be of benefit to someone in the Amiga programming community. Feel
  11. free to alter it at will, (but at your own risk!). I _would_ appreciate
  12. receiving a copy of whatever it may become, and it is always nice to be
  13. credited, (perhaps just a few lines of glowing tribute.^).
  14.  
  15.               Long Live Leo and All the Little Schwabie's!
  16.  
  17. --------------------------------------------------------------------------
  18.                    ********  DESCRIPTION  ********
  19.  
  20.     Sound will attempt to feed <SOUNDfilename>'s data to the audio device.
  21. It will 'sound' files containing ANY kind of data, (try 'Sound Sound' :-)
  22. and of ANY length. If you have expansion memory, 'Sound' will store data
  23. in FAST ram, and use only 4-5 k. of CHIP ram to actually sound the data.
  24. This is the magic of 'double-buffering'.
  25.  
  26.    If the STEREO flag is turned ON,the data will be split and played in
  27. stereo. Otherwise, identical data is sent to left and right channels.
  28. Perfect Sound (tm) samples in stereo will automatically sound in stereo.
  29. These are the only stereo samples I've seen, so I don't know if the code
  30. used is universal (in IFF) for STEREO.
  31.  
  32.     If called from workbench, (by doubleclicking on a project icon), Sound
  33. will search the 'ToolTypes' entries in the project icon for 'STEREO',
  34. 'CYCLES', and 'SAMPLES_PER_SECOND'. If found, these values will override
  35. any IFF values read from the SOUNDfile.
  36.  
  37.     If called from CLI, over-riding values for STEREO, CYCLES, and/or
  38. SAMPLES_PER_SECOND may be specified in the command line. (See below)
  39.  
  40.     If no settings for STEREO, CYCLES, and/or SAMPLES_PER_SECOND are
  41. found, in the file itself or in the calling arguments, STEREO defaults
  42. to OFF, CYCLES to 1, and SAMPLES_PER_SECOND to 10000.
  43.  
  44. --------------------------------------------------------------------------
  45.                         *****   ABORT!   *****
  46.  
  47.    !!! Sound may be aborted by typing <CTRL> 'c' from the keyboard. !!!
  48.  
  49.   If <CTRL> 'c' does NOT abort the sound, click on the Sound 'Status'
  50.       line, (the top line), then <CTRL> 'c' again. 
  51.  
  52. --------------------------------------------------------------------------
  53.                    ***********  USAGE  ************
  54.  
  55. NOTE!!!  'Sound' should be in your 'c' directory, (ie, 'copy Sound c:'),
  56.            before the following USAGEs will work!
  57.  
  58.         USAGE: (from CLI)
  59.  
  60.    Sound <SOUNDfilename> [STEREO] [CYCLES] [SAMPLES_PER_SECOND]
  61.  
  62.     The filename MUST be the first argument, then the other arguments
  63. may be in any order, or missing. (see below for valid values). Sound
  64. alone will display a USAGE message. Sound will 'sound' the file, then
  65. display the SAMPLES_PER_SECOND (if the file was found) and STEREO if
  66. the sample was in stereo.
  67. (SAMPLES_PER_SECOND=10000 probably means it wasn't an IFF sound file.)
  68.  
  69.  
  70.         USAGE: (from WorkBench)
  71.  
  72.    Double-'Click' on project icon whose Default Tool is set to 'c:Sound'.
  73.  
  74.      ToolTypes:   STEREO=   CYCLES=   SAMPLES_PER_SECOND=
  75.  
  76.    Valid Values:
  77.  
  78.        STEREO                ON -   OFF   default=off. Not case sensitive.
  79.                                            File is split left/right.
  80.        CYCLES                 0 -    99   0 = sound loops until aborted.
  81.                                            Use Abort Button to stop. 
  82.        SAMPLES_PER_SECOND  1000 - 65535   greater than 30000 seems to have
  83.                                            no effect, but MAX = 64k.
  84. --------------------------------------------------------------------------
  85.                  ********  ARGUMENT PRIORITIES  *******
  86.  
  87.    Arguments from CLI or in the WorkBench Icon override any IFF info.
  88.  
  89.               IFF file info overrides the default values.
  90.  
  91.     Defaults: STEREO = off, CYCLES = 1, SAMPLES_PER_SECOND = 10000
  92.  
  93. --------------------------------------------------------------------------
  94.                      *******  OTHER STUFF  *******
  95.  
  96.      Included in this arc file are a sample project icon and its related
  97. data file (Sneeze.info and Sneeze) as well as Sound, Sound.c, & this file.
  98. Feel free to design your own icons, any project icon should work. Just
  99. make the Default Tool in the icon 'c:Sound'.
  100.  
  101.      Please try to keep all these files together when distributing as
  102.      every little bit may be of help!
  103.                                           Stay Warm & Enjoy!  - Richard
  104.  
  105. ***************************** Sound.doc **********************************
  106.